<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/12/31
  Time: 10:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>分配角色页面</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/pintuer.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/admin.css">
    <script src="${pageContext.request.contextPath}/static/js/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/static/js/pintuer.js"></script>
</head>
<body>
<center><h1>分配角色页面</h1>
    <font color="red">${sysUser_db.name}</font> --分配角色:
    <hr>
</center>
<form action="${pageContext.request.contextPath}/sysRoleController/FPRole" method="post">
    <input type="hidden" name="sysUserIdStr" value="${sysUser_db.userId}">
    <table class="table table-hover text-center">
        <tr>
            <td colspan="3">角色列表：</td>
        </tr>
        <tr>
            <c:forEach items="${sysRoleList_db}" var="sysRole_db">
                <c:if test="${sysUserRole_db.roleId==sysRole_db.roleId}">
                    <td><input type="radio" name="sysRoleIdStr" id="${sysRole_db.roleId}" checked="checked"
                               value="${sysRole_db.roleId}">${sysRole_db.roleName}</td>
                </c:if>
                <c:if test="${sysUserRole_db.roleId!=sysRole_db.roleId}">
                    <td><input type="radio" name="sysRoleIdStr" id="${sysRole_db.roleId}"
                               value="${sysRole_db.roleId}">${sysRole_db.roleName}</td>
                </c:if>
            </c:forEach>
        </tr>
        <tr >
            <td colspan="3"><input class="button border-green" type="submit" value="分配角色"></td>
        </tr>
    </table>
</form>

</body>
</html>
